﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.IO;

namespace COC.Commons
{
    public class PictureController
    {
        public Dictionary<string, Image> GetImageList(string pPath)
        {
            var map = new Dictionary<string, Image>();
            DirectoryInfo folder = new DirectoryInfo(pPath);

            foreach (FileInfo file in folder.GetFiles())
            {
                map.Add(file.Name, Image.FromFile(file.FullName));
            }
            
            return map;
        }
    }
}
